# browsershots.org ShotServer 0.3-beta1
# Copyright (C) 2007 Johann C. Rocholl <johann@browsershots.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.

"""
Display top menu bar.
"""

__revision__ = "$Rev: 1333 $"
__date__ = "$Date: 2007-05-28 18:33:17 +0000 (Mon, 28 May 2007) $"
__author__ = "$Author: johann $"

from shotserver03.interface import xhtml, menu


def write():
    """
    Write XHTML top menu bar.
    """
    xhtml.write_open_tag_line('div', _class="menu lightgray", _id="topmenu")

    menu.write('float-left', (
        "Screenshots=/screenshots/",
        "Queue=/queue/",
        "Factories=/factories/",
        ))

    menu.write('float-right mockup', (
        "Technology Preview=" +
        "http://browsershots.org/blog/2006/06/12/technology-preview/",
        ))

    xhtml.write_tag_line('div', '', _class="clear")
    xhtml.write_close_tag_line('div') # id="topmenu"
